package com.hackerrank.contests.sep13.challenges.mikeandmark;

import java.util.Scanner;

public class Solution {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int T = in.nextInt();
		for(int t = 0; t < T; t++) {
			int N = in.nextInt(), M = in.nextInt(), K = in.nextInt();
			if(K > N * M)
				System.out.println("YES");
			else
				System.out.println("NO");
		}
	}
}
